home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1995 August: Tool Chest / Dev.CD Aug 95 TC / Dev.CD Aug 95 TC.toast / New System Software Extensions / QuickDraw™ GX 1.1.2 / Programming Stuff / QuickDraw™ GX Interfaces & Libs / CIncludes / graphics macintosh.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-04-10  |  1.9 KB  |  70 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        graphics macintosh.h
  3.  
  4.     Copyright:    © 1984-1995 by Apple Computer, Inc., all rights reserved.
  5.  
  6.     WARNING
  7.     This file was auto generated by the interfacer tool. Modifications
  8.     must be made to the master file.
  9.  
  10. */
  11.  
  12. #ifndef graphicsMacintoshIncludes
  13. #define graphicsMacintoshIncludes
  14. #include "Types.h"
  15.  
  16. #define gestaltGraphicsVersion 'grfx'
  17.  
  18. #define gestaltCurrentGraphicsVersion 0x00010100
  19.  
  20. #define gestaltGraphicsAttr 'gfxa'
  21.  
  22. #define gestaltGraphicsIsDebugging 0x00000001
  23.  
  24. #define gestaltGraphicsIsLoaded 0x00000002
  25.  
  26. #define gestaltGraphicsIsPowerPC 0x00000004
  27.  
  28.     #ifndef graphicsLinkageIncludes
  29. #include "graphics linkage.h"
  30.     #endif
  31.  
  32. enum  {
  33.     defaultPollingHandlerFlags    = 0x00,
  34.     okToSwitchDuringPollFlag    = 0x00,
  35.     dontSwitchDuringPollFlag    = 0x01
  36. };
  37.  
  38. typedef long gxPollingHandlerFlags;
  39.  
  40. typedef void (*gxPollingHandlerProcPtr)(long reference, gxPollingHandlerFlags flags);
  41.  
  42. enum {
  43.     uppgxPollingHandlerProcInfo = kCStackBased
  44.          | STACK_ROUTINE_PARAMETER(1, SIZE_CODE(sizeof(long)))
  45.          | STACK_ROUTINE_PARAMETER(2, SIZE_CODE(sizeof(gxPollingHandlerFlags)))
  46. };
  47.  
  48. #if USESROUTINEDESCRIPTORS
  49. typedef UniversalProcPtr gxPollingHandlerUPP;
  50.  
  51. #define CallgxPollingHandlerProc(userRoutine, reference, flags)        \
  52.         CallUniversalProc((UniversalProcPtr)(userRoutine), uppgxPollingHandlerProcInfo, (reference), (flags))
  53. #define NewgxPollingHandlerProc(userRoutine)        \
  54.         (gxPollingHandlerUPP) NewRoutineDescriptor((ProcPtr)(userRoutine), uppgxPollingHandlerProcInfo, GetCurrentISA())
  55. #else
  56. typedef gxPollingHandlerProcPtr gxPollingHandlerUPP;
  57.  
  58. #define CallgxPollingHandlerProc(userRoutine, reference, flags)        \
  59.         (*(userRoutine))((reference), (flags))
  60. #define NewgxPollingHandlerProc(userRoutine)        \
  61.         (gxPollingHandlerUPP)(userRoutine)
  62. #endif
  63.  
  64. extern gxPollingHandlerUPP GXGetGraphicsPollingHandler(long *reference)
  65.  THREEWORDINLINE(0x303C, 0x245, 0xA832);
  66. extern void GXSetGraphicsPollingHandler(gxPollingHandlerUPP handler, long reference)
  67.  THREEWORDINLINE(0x303C, 0x246, 0xA832);
  68. #endif
  69.  
  70.